package com.ruoyi.crm.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @author mr.huang [jie88888822@163.com]
 * @devTime 2022-06-22
 */
@Data
@Document(collection = "clue_recorddb")
public class MongoClueRecordVO implements Serializable {

	private static final long serialVersionUID = 883819874989731452L;

	@Id
	@Field("_id")
	private String id;

	/* 线索ID */
	private Integer clueId;

	/* 创建人 */
	private String createBy;

	/* 记录时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	private Date createTime;

	/* 意向等级 */
	private String level;

	/* 下次跟进时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	private Date nextTime;

	/* 跟进记录 */
	private String record;

	/* 课程 */
	private String subject;

	/* 0：跟进线索  1：伪线索 */
	private String type;

	/* 伪线索 原因 */
	private String falseReason;

	/* 伪线索备注 */
	private String remark;

	@Getter
	@AllArgsConstructor
	public enum StatusType {
		track_clueSTATUS_TYPE("跟进线索","0"),
		FLASE_CLUE("伪线索","1");

		private String type;
		private String val;
	}
}
